home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>2</cardCount>
- <cardID>2855</cardID>
- <listID>2101</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>---------------------- Walking Shadow Library -----------------------
- on startUp
- getHomeInfo
- global fieldScript,fieldList,bookNumber,autoNumbering
- global tentativeBook, initGlobals
-
- put empty into fieldScript
- put "on closeField" into line 1 of fieldScript
- put "global fieldList" into line 2 of fieldScript
- put "put word 3 of name of me into tempName" into line 3 of ¬
- fieldScript
- put "if not(fieldList contains tempName) then" into line 4 of ¬
- fieldScript
- put "put (word 3 of name of me) & ""e&",""e&" after fieldList" ¬
- into line 5 of fieldScript
- put "end if" into line 6 of fieldScript
- put "end closeField" into line 7 of fieldScript
-
- put empty into fieldList
- put false into tentativeBook
-
- set lockScreen to true
- push card
- put true into initGlobals
- go to stack "Control"
- put the hilite of button "Auto Numbering" into autoNumbering
- put card field "Book Number" into bookNumber
- put false into initGlobals
- pop card
- set lockScreen to false
-
- pass startUp
- end startUp
-
- on openStack
- global beginGlobal
- if beginGlobal is not false then
- put false into beginGlobal
- set cursor to 4
- startUp
- end if
- end openStack
-
-
- on quit
- set lockScreen to true
- go to stack "Control"
- put bookNumber into card field "Book Number"
- end quit
-
- on mkNewCard
- global autoNumbering
- set cursor to 4
-
- doMenu "New Card"
- set lockScreen to true
-
- put the id of this card into labId
-
- put "on goLab" into line 1 of goLabScr
- put "go to "&labId&" of stack Labels" into line 2 of goLabScr
- put "end goLab" into line 3 of goLabScr
- push card
- -----------------------------------------------------------------
- go to stack "Circulation"
- doMenu "New Card"
-
- put the id of this card into circId
-
- put "on goCirc" into line 1 of goCircScr
- put "go to "&circId&" of stack Circulation" into line 2 of goCircScr
- put "end goCirc" into line 3 of goCircScr
- push card
- ------------------------------------------------------------------
- go to stack "Cataloging"
- doMenu "New Card"
-
- put the id of this card into catId
-
- put "on goCat" into line 1 of goCatScr
- put "go to "&catId&" of stack Cataloging" into line 2 of goCatScr
- put "end goCat" into line 3 of goCatScr
- push card
- ------------------------------------------------------------------
- go to stack "Acquisitions"
- doMenu "New Card"
-
- put the id of this card into acqId
-
- put "on goAcq" into line 1 of goAcqScr
- put "go to "&acqId&" of stack Acquisitions" into line 2 of goAcqScr
- put "end goAcq" into line 3 of goAcqScr
- ------------------------------------------------------------------
- -- Make card script:
- put goAcqScr into cardScr
- put goCircScr into line 4 of cardScr
- put goCatScr into line 7 of cardScr
- put goLabScr into line 10 of cardScr
-
- set the script of this card to cardScr
- pop card
- set the script of this card to cardScr
- pop card
- set the script of this card to cardScr
- pop card
- set the script of this card to cardScr
- if autoNumbering is true then send openCard to this card
-
- set lockscreen to false
- end mkNewCard
-
- on delCard
- answer "Delete this and related cards in other stacks?" with ¬
- "OK" or "Cancel"
- if it is not "Cancel" then
- set cursor to 4
- set lockScreen to true
-
- push card
- do line 5 of the script of this card
- push card
- do line 8 of the script of this card
- push card
- do line 2 of the script of this card
- doMenu "Delete Card"
- pop card
- doMenu "Delete Card"
- pop card
- doMenu "Delete Card"
- pop card
- doMenu "Delete Card"
-
- set lockscreen to false
- end if
- end delCard
-
- on arrowKey whichKey
- if the CommandKey is down then
- mkNewCard
- else
- if whichKey = "right" then
- go to next card
- else
- if whichKey = "left" then
- go to prev card
- end if
- end if
- end if
- end arrowKey
- -------------------- End Open Stack Routine ---------------------------
-
- on resu